﻿using System;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace Sito.Model
{
    internal class User
    {
        #region UserStatus enum

        public enum UserStatus
        {
            InActive,
            Active,
            Banned,
            Admin
        }

        #endregion

        public DateTime LastAccess;
        public string LastIP;
        public string Mail;

        public string NiceName;
        public string Password;
        public DateTime SignupDate;
        public string SignupIP;
        public UserStatus Status;

        [BsonId]
        public ObjectId _id { get; set; }
    }
}